﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.NetworkInformation;
using System.Text;
using System.Threading.Tasks;

namespace IP扫描
{
    internal class IPScanOperation
    {
        public  bool IPScan(string ip)
        {
            using (Ping ping = new Ping())
            {
                PingReply reply = ping.Send(ip,3000);
                if(reply.Status== IPStatus.Success)
                {
                    return true;    
                }
                return false;   
            }
        }
    }
}
